<template>
  <!-- <div class="infinite-list" id="common-layout " v-infinite-scroll="load"  style="overflow: auto">
      <el-header><Header></Header></el-header>
      <el-container>
        <el-main>
        </el-main> 
        <el-aside width="200px">Aside</el-aside>
      </el-container>
    <ul v-infinite-scroll="load" class="infinite-list" style="overflow: auto">
    <li v-for="i in count" :key="i" class="infinite-list-item">{{ i }}</li>
 </ul>
  </div> -->
  <ul class="infinite-list" v-infinite-scroll="load" style="overflow: auto">
    <li v-for="i in count" class="infinite-list-item">{{ i }}</li>
  </ul>
</template>

<script>
// import Header from './header.vue';

import Header from './header.vue';
import Main from './main.vue';
export default {
  components: { Header, Main },

  data() {
    return {
      count: 0
    };
  },
  methods: {
    load() {
      this.count += 4;
    }
  }
};
</script>

<style scoped>
#common-layout {
  height: 100%;
  width: 100%;
}
.el-container {
  height: 100%;
  width: 100%;
}

.el-header {
  width: 100%;
  height: 20%;
}

.el-aside {
  background-color: #f4f5;
  color: #333;
  text-align: center;
  line-height: 200px;
  width: 30%;
}

.el-main {
  background-color: #f4f5f5;
  /* color: #333;  */
  text-align: center;
  line-height: 160px;
  width: 70%;
}

.two {
  height: 500px;
  background-color: blue;
  border: 1px solid black;
}
</style>
